package com.eastidea.live.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eastidea.live.dao.UserDao;
import com.eastidea.live.entity.AppUser;

@Service
public class UserServiceImpl implements UserService {

	@Resource
	UserDao userDao;

	@Override
	public AppUser update(String email) {
		AppUser user = userDao.get(Long.valueOf(1));
		userDao.saveOrUpdate(user);
		return user;
	}

}
